#!/usr/bin/python

import random

print "Welcome to the best acey ducey game EVER CREATED (by a person named Critter sitting on a couch in 103)\n\n"

cash = 100
while True:
    print "\ncash: " + str(cash)
    card1 = random.randint(1,13)
    card2 = random.randint(1,13)
    jakesDeck = {11:"Jack", 12:"Queen", 13:"King"}
    for x in range(1,11):
        jakesDeck[x] = x
    print "Cards dealt: " + str(jakesDeck[card1]) + ", " + str(jakesDeck[card2])
    answer = raw_input("Pass, Bet, or Quit? ").lower()
    if "p" in answer:
        pass
    elif "b" in answer:
        bet = int(raw_input("How much you want to bet? "))
        card3 = random.randint(1,13)
        deck = sorted([card1, card2, card3])
        print "The dealer drew: " + str(jakesDeck[card3]) 
        if deck[2] > deck[0] and card3 < deck[1]:
            print "Awesome! You win (a gambling addiction)!"
            cash += bet
        else:
            print "Bwahahahaha! Ahhahahah.... Oh geeze...\n*wipes tears of laughter from face*\nYou SUCK!"
            cash -= bet
    elif "q" in answer:
        print "FUCK OFF YOU MOTHER FUCKER SHUT THE FUCK UP ABOUT FUCKING EXIT \"LOOPS\" BITCH"
        break